/*
 * Created by hql on #CreateTime#
 */

using DG.Tweening;
using UnityEngine;
using UnityEngine.UI;

namespace IMMotors
{
    public class PaintView_Tree : PaintView
    {
        public override void Sure()
        {
            if (!isSure) return;
            Texture texture = _paintCanvas.texture;
            Config_Tree config = Config.Instance as Config_Tree;
            // Vector3 pos = _paintCanvas.GetComponent<RectTransform>().anchoredPosition;
            Vector3 pos = _paintCanvas.transform.position;
            // Debug.Log(pos);
            config.DataUpdate(texture,pos);
            StartCoroutine(SignatureSave());
        }
    }
}
